home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO023.dsk
/
QS2.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
1KB
|
31 lines
0 TEXT : HOME
9 PRINT : PRINT : PRINT
10 PRINT "Where would you weigh the most?"
12 PRINT : PRINT
14 PRINT " a) On top of Mount Everest"
15 PRINT
16 PRINT " b) At the lowest point in Death Valley"
17 PRINT
18 PRINT " c) In the cornfields of the Midwest"
19 PRINT
20 PRINT " d) I need a hint"
21 PRINT : PRINT
30 GET KY$
39 HOME : PRINT : PRINT : PRINT : PRINT : PRINT
40 IF KY$ = "c" OR KY$ = "C" THEN GOSUB 100
50 IF KY$ = "a" OR KY$ = "A" THEN GOSUB 110
60 IF KY$ = "b" OR KY$ = "B" THEN GOSUB 120
70 IF KY$ = "d" OR KY$ = "D" THEN GOSUB 130
80 IF KY$ < >"a" OR KY$ < >"A" OR KY$ < >"b" OR KY$ < >"B" OR KY$ < >"d" OR KY$ < >"D" THEN GOSUB 140
100 PRINT "No, try somewhere closer to the center of the Earth."
102 GOSUB 200: GOTO 0: RETURN
110 PRINT "No, you would be the weigh the least there. Try again."
112 GOSUB 200: GOTO 0: RETURN
120 PRINT "Right!! Because the effect of GRAVITY is stronger the closer you are to the center of the Earth. Let's go on to the next question."
122 GOSUB 300: PRINT CHR$(4);"run qs3"
130 PRINT "Remember, the greater the gravitational pull, the more you weigh."
132 GOSUB 200: GOTO 0: RETURN
140 PRINT "Please enter only A, B, C, or D!!"
142 GOSUB 200: GOTO 0: RETURN
200 FOR I = 0 TO 3500: NEXT : RETURN
300 FOR I = 0 TO 4500: NEXT : RETURN